using System.Collections;
using System.Collections.Generic;
using com.yoozoo.gta;
using UnityEditor;
using UnityEngine;
using Yoozoo.Gameplay.City;

namespace Yoozoo.Gameplay.CityEditor
{
    [CustomEditor(typeof(CityBuildingsFloorEditor))]
    public class CityBuildingsFloorEditorEditor : UnityEditor.Editor
    {
        private CityBuildingsFloorEditor _cityBuildingsFloorEditor;
        
        private void OnEnable()
        {
            _cityBuildingsFloorEditor = target as CityBuildingsFloorEditor;
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            base.OnInspectorGUI();
            
            GUILayout.BeginHorizontal();
            if (GUILayout.Button("导出所有建筑的地板数据",GUILayout.Height(30)))
            {
                _cityBuildingsFloorEditor.Begin();
            }
            GUILayout.EndHorizontal();
            
        }
    }
}
